package cn.com.nes.mybatis.agent.project.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 项目表
 */
@TableName(value = "t_project")
@Data
public class TProject implements Serializable {

    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *  地点ID
     */
    @TableField(value = "uuid")
    private String uuid;

    /**
     * 合同编号
     */
    @TableField(value = "contract_no")
    private String contractNo;

    /**
     * 项目编号
     */
    @TableField(value = "project_id")
    private String projectId;

    /**
     * 项目名称
     */
    @TableField(value = "project_name")
    private String projectName;

    /**
     * 计划开始时间
     */
    @TableField(value = "planned_start_time")
    private Date plannedStartTime;

    /**
     * 计划结束时间
     */
    @TableField(value = "planned_end_time")
    private Date plannedEndTime;

    /**
     * 投资规模
     */
    @TableField(value = "investment_scale")
    private BigDecimal investmentScale;

    /**
     * 行政区域ID
     */
    @TableField(value = "area_code")
    private String areaCode;

    /**
     * 公司ID
     */
    @TableField(value = "company_id")
    private String companyId;

    /**
     * 项目·所属单位
     */
    @TableField(value = "department_id")
    private String departmentId;

    /**
     * 负责人
     */
    @TableField(value = "charge")
    private String charge;

    /**
     * 服务·模式
     */
    @TableField(value = "service_mode")
    private String serviceMode;

    /**
     * 项目状态  待排期	01
     * 待分配	02
     * 待施工	03
     * 施工中	04
     * 待检查	05
     * 待验收	06
     * 完毕	07
     */
    @TableField(value = "project_status")
    private String projectStatus;

    /**
     * 项目类型
     */
    @TableField(value = "project_type")
    private String projectType;

    /**
     * 项目级别
     */
    @TableField(value = "project_level")
    private String projectLevel;

    /**
     * 联系人
     */
    @TableField(value = "contact")
    private String contact;

    /**
     * 联系电话
     */
    @TableField(value = "contact_phone")
    private String contactPhone;

    /**
     * 项目地点
     */
    @TableField(value = "project_address")
    private String projectAddress;

    /**
     * 纬度
     */
    @TableField(value = "latitude")
    private BigDecimal latitude;

    /**
     * 经度
     */
    @TableField(value = "longitude")
    private BigDecimal longitude;

    /**
     * 描述
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 图片
     */
    @TableField(value = "images")
    private String images;

    /**
     * 是否回款
     */
    @TableField(value = "is_payment")
    private String isPayment;

    /**
     * 商机ID
     */
    @TableField(value = "opportunity_uuid")
    private String opportunityUuid;

    /**
     * 线索ID
     */
    @TableField(value = "clue_uuid")
    private String clueUuid;

    /**
     * 客户ID
     */
    @TableField(value = "customer_uuid")
    private String customerUuid;

    /**
     * 创建者uid
     */
    @TableField(value = "createUid")
    private Long createuid;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Date createtime;

    /**
     * 修改者uid
     */
    @TableField(value = "modifyUid")
    private Long modifyuid;

    /**
     * 修改时间
     */
    @TableField(value = "modifyTime")
    private Date modifytime;

    /**
     * 项目厂家ID
     */
    @TableField(value = "manufacture_id")
    private String manufactureId;

    /**
     * 运营系统厂家ID
     */
    @TableField(value = "ope_manufacture_id")
    private String opeManufactureId;

    /**
     *
     */
    @TableField(value = "jsondata")
    private String jsondata;

    /**
     * 模板ID
     */
    @TableField(value = "templateId")
    private String templateid;

    /**
     * 设备类型列表
     */
    @TableField(value = "device_models")
    private String deviceModels;

    @TableField(exist = false)
    private String opportunityName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}